package tw.org.iii.gMapTesting;

import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;

import android.os.Bundle;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.view.Menu;

public class Actmain extends Activity {

    static final LatLng l_latKH = new LatLng(22.638574, 120.301912);
    private GoogleMap map;

    @SuppressLint("NewApi")
	protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.actmain);

        map = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
        Marker l_markKHStation = map.addMarker(new MarkerOptions().position(l_latKH).title("高雄市").snippet("火車站"));

        map.moveCamera( CameraUpdateFactory.newLatLngZoom(l_latKH, 16) );
    }
    
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.actmain);
//    }

    

}
